package com.itheima.Demo01.demo01;

import java.math.BigDecimal;

public class Test01 {
    public static void main(String[] args) {
        BigDecimal bd = new BigDecimal("0.1");
        BigDecimal bd2 = new BigDecimal("0.2");

        BigDecimal add = bd.add(bd2);
        System.out.println(add);

        BigDecimal sub = bd.subtract(bd2);
        System.out.println(sub);

        Integer i = 3;
        System.out.println(i);

    }
}
